Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 963 Bytes

README.md

File metadata and controls

50 lines (40 loc) · 963 Bytes

globrex-lune

glob to regular expression compiler.

Note

This library is the lune version of globrex
use module : luau-regexp

pesde : globrex_lune

Install

pesde

pesde add kimpure/globrex_lune

submodule

git submodule add https://github.com/kimpure/globrex-lune.git globrex-lune

Example

local globrex = require('globrex-lune');

local result = globrex("**/*.luau", { globstar = true })

print(result)
print(result.regex)
print(result.path)

Description

module import

local globrex = require('globrex-lune');

get Result

local result = globrex(glob: string, option: {
    extended: boolean?, 
    globstar: boolean?, 
    strict: boolean?, 
    filepath: boolean?, 
    flags: string?
}?)