Comments (3)
好的十分感谢, 稍后修改, 要不要提个pr参与下?
from any-rule.
事实上我发现 eslint-plugin-unicorn 可以优化正则,这个issues也来自于此,我在考虑要不要提个统一的PR 将它集成进项目。
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/HEAD/docs/rules/regex-shorthand.md
不过它的优化不是绝对可靠的,需要人工审核
from any-rule.
我有项目里有测试脚本, 可以简答测试一下, 提交后action会执行test
https://github.com/any86/any-rule/blob/master/__test__/rule.js
from any-rule.
Related Issues (20)
- 你好
- 我有更好的正则:身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
- [vscode feedback] 身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X HOT 1
- 我有更好的正则: 密码强度校验,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符 HOT 1
- 正则表达式校验金额最多保留两位小数
- 我有更好的正则: 中文姓名 HOT 6
- 手机号校验规则(严谨)不适用了😭 HOT 6
- /^[GCDZTSPKXLY1-9]\d{1,4}$/
- 少数民族名字总会有"·"
- 我有更好的正则: 混合英文字母大小写、数宇、符号(排除@#%$^&*0)中的3种或以上
- 我有更好的正则: 手机号(mobile phone)**(严谨), 根据工信部2019年最新公布的手机号段 HOT 1
- 我有更好的正则: 手机号(mobile phone)**(严谨), 根据工信部2019年最新公布的手机号段 HOT 1
- 我有更好的正则: 网址(URL)
- 我有更好的正则: **身份证
- 我有更好的正则: 火车车次
- 能不能搞个表情符号的啊,这个网上一大堆用了都不对
- 我有更好的正则: 手机机身码(IMEI) HOT 1
- 我有更好的正则:手机号(严谨)
- 银行卡号校验错误❌(10到30位, 覆盖对公/私账户)河北省的对公账户匹配不上
- 我有更好的正则: 网址(URL)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from any-rule.