Skip to content

Commit

Permalink
fix(nlu): pattern extraction case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron committed Jul 15, 2019
1 parent c9a6b0a commit 0d414d3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -154,7 +154,7 @@ export default class PatternExtractor {
async extractPatterns(input: string, entityDefs: sdk.NLU.EntityDefinition[]): Promise<sdk.NLU.Entity[]> {
return flatMap(entityDefs, entityDef => {
try {
const regex = new RegExp(entityDef.pattern!)
const regex = new RegExp(entityDef.pattern!, 'i')
return extractPattern(input, regex).map(res => ({
name: entityDef.name,
type: entityDef.type, // pattern
Expand Down

0 comments on commit 0d414d3

Please sign in to comment.