Skip to content

Commit

Permalink
Revert isStoryModule
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel committed Apr 23, 2024
1 parent bd7a5b0 commit 18fb9f1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Storybook/isStoryModule.luau
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
local constants = require("@root/constants")

local function isStoryModule(instance: Instance)
if
instance:IsA("ModuleScript")
and (instance.Name:match(constants.STORY_NAME_PATTERN) or instance.Name:match(constants.STORY_NAME_PATTERN_CSF))
then
if instance:IsA("ModuleScript") and instance.Name:match(constants.STORY_NAME_PATTERN) then
return true
end
return false
Expand Down

0 comments on commit 18fb9f1

Please sign in to comment.