Skip to content

Commit

Permalink
fix issue #536
Browse files Browse the repository at this point in the history
  • Loading branch information
toddbruner committed Sep 18, 2018
1 parent 7e62e52 commit 0c10f14
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/Scot/Extractor/Regex.pm
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ sub _build_PYTHON_FILE_EXT {
}xims;
return {
regex => $regex,
type => "filename",
type => "file",
order => 9,
options => { multiword => "no" },
};
Expand Down
20 changes: 10 additions & 10 deletions t/extractor/examples.pl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
EOF
flair => <<EOF,
<div>
https://<span class="entity domain" data-entity-type="domain" data-entity-value="cbase.som.sunysb.edu">cbase.som.sunysb.edu</span>/soap/<span class="entity filename" data-entity-type="filename" data-entity-value="bss.cfm">bss.cfm</span>
https://<span class="entity domain" data-entity-type="domain" data-entity-value="cbase.som.sunysb.edu">cbase.som.sunysb.edu</span>/soap/<span class="entity file" data-entity-type="file" data-entity-value="bss.cfm">bss.cfm</span>
</div>
EOF
entities => [
Expand All @@ -31,7 +31,7 @@
value => "cbase.som.sunysb.edu",
},
{
type => "filename",
type => "file",
value => "bss.cfm",
},
],
Expand Down Expand Up @@ -747,7 +747,7 @@
cmd.exe /c bcdedit /set {default} recoveryenabled No
EOF
flair => <<'EOF',
<div><span class="entity filename" data-entity-type="filename" data-entity-value="cmd.exe">cmd.exe</span> /c <span class="entity jrock1" data-entity-type="jrock1" data-entity-value="bcdedit /set">bcdedit /set</span> {default} recoveryenabled No</div>
<div><span class="entity file" data-entity-type="file" data-entity-value="cmd.exe">cmd.exe</span> /c <span class="entity jrock1" data-entity-type="jrock1" data-entity-value="bcdedit /set">bcdedit /set</span> {default} recoveryenabled No</div>
EOF
entities => [
{
Expand All @@ -756,7 +756,7 @@
},
{
value => "cmd.exe",
type => "filename",
type => "file",
},
],
userdef => [
Expand Down Expand Up @@ -795,13 +795,13 @@
invoice.pdf.exe
EOF
flair => <<'EOF',
<div><span class="entity filename" data-entity-type="filename" data-entity-value="invoice.pdf.exe">invoice.pdf.exe</span>
<div><span class="entity file" data-entity-type="file" data-entity-value="invoice.pdf.exe">invoice.pdf.exe</span>
</div>
EOF
entities => [
{
value => 'invoice.pdf.exe',
type => 'filename',
type => 'file',
}
],
userdef => [],
Expand Down Expand Up @@ -930,13 +930,13 @@
haxor.py
EOF
flair => <<'EOF',
<div><span class="entity filename" data-entity-type="filename" data-entity-value="haxor.py">haxor.py</span>
<div><span class="entity file" data-entity-type="file" data-entity-value="haxor.py">haxor.py</span>
</div>
EOF
entities => [
{
value => 'haxor.py',
type => 'filename',
type => 'file',
}
],
userdef => [],
Expand Down Expand Up @@ -1310,13 +1310,13 @@
is: /mnt/gfs/cfdocs/eCATT/templates/pgas_rslts.cfm, line: 235
EOF
flair => <<'EOF',
<div>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 &#39;=&#39;. The specific sequence of files included or processed is: /mnt/gfs/cfdocs/eCATT/templates/<span class="entity filename" data-entity-type="filename" data-entity-value="pgas_rslts.cfm">pgas_rslts.cfm</span>, line: 235
<div>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 &#39;=&#39;. The specific sequence of files included or processed is: /mnt/gfs/cfdocs/eCATT/templates/<span class="entity file" data-entity-type="file" data-entity-value="pgas_rslts.cfm">pgas_rslts.cfm</span>, line: 235
</div>
EOF
entities => [
{
value => 'pgas_rslts.cfm',
type => 'filename',
type => 'file',
},
],
userdef => [],
Expand Down

0 comments on commit 0c10f14

Please sign in to comment.