From 0c10f14610ceceb3847f1290065fe4edd7709ea5 Mon Sep 17 00:00:00 2001 From: Todd Bruner Date: Tue, 18 Sep 2018 13:18:32 -0600 Subject: [PATCH] fix issue #536 --- lib/Scot/Extractor/Regex.pm | 2 +- t/extractor/examples.pl | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/Scot/Extractor/Regex.pm b/lib/Scot/Extractor/Regex.pm index c797b084c..956ef0e64 100644 --- a/lib/Scot/Extractor/Regex.pm +++ b/lib/Scot/Extractor/Regex.pm @@ -698,7 +698,7 @@ sub _build_PYTHON_FILE_EXT { }xims; return { regex => $regex, - type => "filename", + type => "file", order => 9, options => { multiword => "no" }, }; diff --git a/t/extractor/examples.pl b/t/extractor/examples.pl index ec1f89dc6..1e41f952b 100644 --- a/t/extractor/examples.pl +++ b/t/extractor/examples.pl @@ -22,7 +22,7 @@ EOF flair => < -https://cbase.som.sunysb.edu/soap/bss.cfm +https://cbase.som.sunysb.edu/soap/bss.cfm EOF entities => [ @@ -31,7 +31,7 @@ value => "cbase.som.sunysb.edu", }, { - type => "filename", + type => "file", value => "bss.cfm", }, ], @@ -747,7 +747,7 @@ cmd.exe /c bcdedit /set {default} recoveryenabled No EOF flair => <<'EOF', -
cmd.exe /c bcdedit /set {default} recoveryenabled No
+
cmd.exe /c bcdedit /set {default} recoveryenabled No
EOF entities => [ { @@ -756,7 +756,7 @@ }, { value => "cmd.exe", - type => "filename", + type => "file", }, ], userdef => [ @@ -795,13 +795,13 @@ invoice.pdf.exe EOF flair => <<'EOF', -
invoice.pdf.exe +
invoice.pdf.exe
EOF entities => [ { value => 'invoice.pdf.exe', - type => 'filename', + type => 'file', } ], userdef => [], @@ -930,13 +930,13 @@ haxor.py EOF flair => <<'EOF', -
haxor.py +
haxor.py
EOF entities => [ { value => 'haxor.py', - type => 'filename', + type => 'file', } ], userdef => [], @@ -1310,13 +1310,13 @@ is: /mnt/gfs/cfdocs/eCATT/templates/pgas_rslts.cfm, line: 235 EOF flair => <<'EOF', -
Sep 10, 2018 07:33:38 AM Error [ajp-nio-8016-exec-6] - Error Executing Database Query.[Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near '='. The specific sequence of files included or processed is: /mnt/gfs/cfdocs/eCATT/templates/pgas_rslts.cfm, line: 235 +
Sep 10, 2018 07:33:38 AM Error [ajp-nio-8016-exec-6] - Error Executing Database Query.[Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near '='. The specific sequence of files included or processed is: /mnt/gfs/cfdocs/eCATT/templates/pgas_rslts.cfm, line: 235
EOF entities => [ { value => 'pgas_rslts.cfm', - type => 'filename', + type => 'file', }, ], userdef => [],