prh / rules Goto Github PK
View Code? Open in Web Editor NEWA collection of prh rules
A collection of prh rules
Lines 2530 to 2531 in 711e007
上記について、正規表現NGとエラーがでました。
Error while loading rule 'prh': Invalid regular expression: /ISO\-/: Invalid escape
techbooster.yml
内に、漢字の「事」をひらくために次のようなルールが定められています。
- expected: こと
pattern: /(記|大|仕|返|無|食|見|議|当)?事(?!情|件|前|後|象|例|実|体|態|項|務|業|柄|故)/
正規表現で熟語にはマッチしないようにしようとされていますが、これでは定義されていない熟語(「悪事」や「事変」など)がマッチしてしまいます。
それらの熟語がマッチしないように漢字を追加してもいいのですが、これはホワイトリスト形式そのものの問題であると考えます。
そこで、いっそのことパターンを「前または後を漢字に挟まれていない『事』」という、より広いものに変えるのはどうでしょうか(正規表現でうまく表現できるのかはわかりませんが)。
サマリをここに随時更新していく
初期案はリポジトリに突っ込んでおきました(動かしてないのでコンパイルは通らないかも
https://github.com/prh/rules/blob/master/README.ja.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.