Sha256: 1f507bf8ee21ad4b83bf87bc9fc8a10ed37e6b829fa3ce15a890ed42a72c729d
Contents?: true
Size: 501 Bytes
Versions: 6
Compression:
Stored size: 501 Bytes
Contents
require 'spec_helper' describe 'EcmaReValidator::PossesiveQuantifiers' do it 'should fail if regexp has *+ possesive quantifier' do re = /"[^"]*+"/ expect(EcmaReValidator.valid?(re)).to eql(false) end it 'should fail if regexp has ++ possesive quantifier' do re = /"[^"]++"/ expect(EcmaReValidator.valid?(re)).to eql(false) end it 'should fail if regexp has ?+ possesive quantifier' do re = /"[^"]?+"/ expect(EcmaReValidator.valid?(re)).to eql(false) end end
Version data entries
6 entries across 6 versions & 1 rubygems