Skip to content

[BUG] Asterisk and intersecting fragments not working as expected #61

@naughtyfox

Description

@naughtyfox

HI, all!
I got the following code:

package main

import (
	"log"

	"github.com/gobwas/glob"
)

func main() {
	pattern := "start*art"
	gl := glob.MustCompile(pattern)

	s := "start"
	log.Printf("Result: %v", gl.Match(s)) 
}

Which results in:

$ ./main
2023/08/01 16:20:08 Result: true

I expect it to be false. Is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions