chrmarti / vscode-regex

MIT License
157 stars 33 forks source link

test status is wrong #30

Open ddtramp opened 6 years ago

ddtramp commented 6 years ago

reg = /^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W!@#$%^&*`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\W!@#$%^&`~()-+=]+$)(?![0-9\W_!@#$%^&~()-+=]+$)[a-zA-Z0-9\W_!@#$%^&*~()-+=]{6,20}$/

string = asd1111, the result show true string = 1 the result show true string = asd1111 the result show ture

all of the above should be false

Lowercase letters, uppercase letters, numbers ,special characters and length

Must contain three types at the same time and length must between (6, 20)

chrmarti commented 6 years ago

When I match against a document with only one of these strings (and no extra newline or anything), it does not match.

aug-17-2018 08-11-51

Make sure you turn off the automatic addition of '/gm' for advanced regexes like this. The statusbar should show: image