mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 04:45:27 +00:00
Fixed matcher type integer issue
This commit is contained in:
parent
f74ff3fc49
commit
66dacccfb4
@ -106,10 +106,10 @@ func (holder *MatcherTypeHolder) UnmarshalYAML(unmarshal func(interface{}) error
|
||||
return nil
|
||||
}
|
||||
|
||||
func (holder *MatcherTypeHolder) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(holder.MatcherType)
|
||||
func (holder MatcherTypeHolder) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(holder.MatcherType.String())
|
||||
}
|
||||
|
||||
func (holder MatcherTypeHolder) MarshalYAML() (interface{}, error) {
|
||||
return holder.MatcherType, nil
|
||||
return holder.MatcherType.String(), nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user