Commit graph

11 commits

Author SHA1 Message Date
Bryan Housel
b21ac2eb66 Enable --experimental-json-modules so we can import json files
https://nodejs.org/docs/latest-v14.x/api/esm.html#esm_experimental_json_modules
This was something that we did a lot of with require()
2021-06-22 15:17:54 -04:00
Bryan Housel
1c4fc70e3b WIP Modernize
- switch to type: module
- replace all CJS require/module.exports with ES6 import/expor
2021-06-22 00:04:52 -04:00
Bryan Housel
43e50b725d Drop entire general and supplemental unicode punctuation blocks
U+2000-U206F is the General Punctuation block (en/em dashes are here)
U+2E00-U2E7F is the Supplemental Punctuation block
(closes #5117)
2021-06-07 19:43:19 -04:00
Bryan Housel
7654d3663d Fix "Bim" -> "BİM"
(closes #5017)
2021-04-11 13:15:53 -04:00
Bryan Housel
b13f500cc8 Ensure that simplify/stemmer can deal with non-string input 2020-12-23 11:17:05 -05:00
Bryan Housel
e14c98ac64 Don't trim the zero width chars when cleaning tags before save
But do clean them when creating the simplified strings used by the matcher and idgen
(closes #4715)
2020-11-19 11:44:44 -05:00
Bryan Housel
0d7e7a1da9 Consider '«','»' as punctuation
(Used frequently like parenthesis in Cyrillic languages)
2020-11-13 10:45:12 -05:00
Bryan Housel
a4d1ebbf76 Minor ES6 syntax changes 2020-02-06 10:56:26 -05:00
Bryan Housel
5b81bfb6a5 Use ES6 everywhere in /lib/*.js now that iD can transpile it 2019-11-08 12:22:28 -05:00
Bryan Housel
e9e1aee3fd In matcher, replace '&' with 'and'
(this will let us avoid a bunch of unnecessary matchnames)
2019-07-17 11:16:19 -04:00
Bryan Housel
994155a471 Extract matcher, simplify, to_parts to /lib 2019-05-13 22:15:54 -04:00