Skip to content

Commit 658b61e

Browse files
committed
Sort strings to be matched before passing them to regexgen
Issue: #1 Issue: devongovett/regexgen#31
1 parent 0933f57 commit 658b61e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

dist/emoji-13.1/java.txt

+1-1
Large diffs are not rendered by default.

dist/emoji-13.1/javascript.txt

+1-1
Large diffs are not rendered by default.

dist/latest/java.txt

+1-1
Large diffs are not rendered by default.

dist/latest/javascript.txt

+1-1
Large diffs are not rendered by default.

script/get-sequences.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const getSequences = (packageName) => {
22
const sequences = require(`${packageName}/Sequence_Property/Emoji_Test/index.js`)
3-
// Sort by code point length; longest sequences first.
4-
.sort((a, b) => [...b].length - [...a].length);
3+
// https://github.com/devongovett/regexgen/issues/31
4+
.sort();
55
return sequences;
66
};
77

0 commit comments

Comments
 (0)